import {utils} from './../utils/index'

let User = {}

utils.commonAddApi(User, 'getUserOpenid', 'getUserOpenId/{code}', 'post')
utils.commonAddApi(User, 'getUserByOpenid', 'users/getByOpenid/{openid}', 'get')
utils.commonAddApi(User, 'updateUserInfo', 'users/create', 'post')
utils.commonAddApi(User, 'prePayment', 'api/pay/jsapi/order/{orderNumber}', 'post')
utils.commonAddApi(User, 'withdraw', 'user/withdraw', 'post')
utils.commonAddApi(User, 'getCities', 'static/cities.json', 'get')

export default User
